ENet v1.3.13 Reliable UDP networking library

- Home
- Features
- Downloads
- Installation
- Tutorial
- Mailing List
- IRC Channel
- FAQ
- License
- Documentation

- Functions
- Data Structures
- Files
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Structures | Macros | Typedefs
win32.h File Reference

ENet Win32 header. More...

`#include <stdlib.h>`
`#include <winsock2.h>`

## Data Structures
struct | ENetBuffer

## Macros
#define | ENET_API extern
#define | ENET_CALLBACK __cdecl
#define | ENET_HOST_TO_NET_16(value) (htons (value))
#define | ENET_HOST_TO_NET_32(value) (htonl (value))
#define | ENET_NET_TO_HOST_16(value) (ntohs (value))
#define | ENET_NET_TO_HOST_32(value) (ntohl (value))
#define | ENET_SOCKET_NULL INVALID_SOCKET
#define | ENET_SOCKETSET_ADD(sockset, socket) FD_SET (socket, & (sockset))
#define | ENET_SOCKETSET_CHECK(sockset, socket) FD_ISSET (socket, & (sockset))
#define | ENET_SOCKETSET_EMPTY(sockset) FD_ZERO (& (sockset))
#define | ENET_SOCKETSET_REMOVE(sockset, socket) FD_CLR (socket, & (sockset))

## Typedefs
typedef SOCKET | ENetSocket
typedef fd_set | ENetSocketSet

## Detailed Description

ENet Win32 header.

## Macro Definition Documentation

#define ENET_API extern

#define ENET_CALLBACK __cdecl

#define ENET_HOST_TO_NET_16 | ( |  | value | ) | (htons (value))

#define ENET_HOST_TO_NET_32 | ( |  | value | ) | (htonl (value))

#define ENET_NET_TO_HOST_16 | ( |  | value | ) | (ntohs (value))

#define ENET_NET_TO_HOST_32 | ( |  | value | ) | (ntohl (value))

#define ENET_SOCKET_NULL INVALID_SOCKET

#define ENET_SOCKETSET_ADD | ( |  | sockset,
|  |  | socket
| ) |  | FD_SET (socket, & (sockset))

#define ENET_SOCKETSET_CHECK | ( |  | sockset,
|  |  | socket
| ) |  | FD_ISSET (socket, & (sockset))

#define ENET_SOCKETSET_EMPTY | ( |  | sockset | ) | FD_ZERO (& (sockset))

#define ENET_SOCKETSET_REMOVE | ( |  | sockset,
|  |  | socket
| ) |  | FD_CLR (socket, & (sockset))

## Typedef Documentation

typedef SOCKET ENetSocket

typedef fd_set ENetSocketSet